/**
 * @file propTypes.js.
 * @author liaoxuezhi@baidu.com
 */
/* eslint-disable */

import {
  PropTypes
} from 'react';

export const renderer = PropTypes.shape({
  type: PropTypes.string
});

export const container = PropTypes.oneOfType([
  PropTypes.string,
  renderer,
  PropTypes.arrayOf(PropTypes.oneOfType([
    PropTypes.string,
    renderer
  ]))
]);

export const api = PropTypes.oneOfType([
  PropTypes.string,
  PropTypes.shape({
    url: PropTypes.string.isRequired,
    method: PropTypes.string,
    data: PropTypes.object
  })
]);

export const bool = PropTypes.oneOfType([
  PropTypes.bool,
  PropTypes.string
]);